package collector

import (
	"gitee.com/csingo/cRpc"
	"github.com/gin-gonic/gin"
)

type VersionsServiceHTTPClient struct{}

func (i *VersionsServiceHTTPClient) RpcClientName() (app string, service string) {
	return "collector", "VersionsService"
}

func (i *VersionsServiceHTTPClient) Save(ctx *gin.Context, req *VersionsServiceSaveReq) (rsp *VersionsServiceSaveRsp, err error) {
	rsp = &VersionsServiceSaveRsp{}
	err = cRpc.Call(ctx, i, "Save", req, rsp)
	return
}
